package com.danskin.wechat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.danskin.wechat.dao.SportsInfoDao;
import com.danskin.wechat.entity.SportsInfo;
import com.danskin.wechat.service.SportsInfoService;
import com.danskin.wechat.util.Page;

@Service
public class SportsInfoServiceImpl implements SportsInfoService{

	@Autowired
	private SportsInfoDao sportsInfoDao;

	@Override
	public List<SportsInfo> findSportsInfoList(Page page) {
		// TODO Auto-generated method stub
		return sportsInfoDao.listPageSportsInfoList(page);
	}

	@Override
	public void deleteSportsInfo(String id) {
		// TODO Auto-generated method stub
		sportsInfoDao.deleteSportsInfo(id);
	}

	@Override
	public SportsInfo findSportsInfobyId(String id) {
		// TODO Auto-generated method stub
		return sportsInfoDao.findSportsInfobyId(id);
	}

	@Override
	public void saveUpdateSportsInfo(SportsInfo sportsInfo) {
		// TODO Auto-generated method stub
		sportsInfoDao.saveUpdateSportsInfo(sportsInfo);
	}

	@Override
	public void saveSportsInfo(SportsInfo sportsInfo) {
		// TODO Auto-generated method stub
		sportsInfoDao.saveSportsInfo(sportsInfo);
	}

	@Override
	public List<SportsInfo> querySportsInfo(String appId) {
		// TODO Auto-generated method stub
		return sportsInfoDao.querySportsInfo(appId);
	}
}
